﻿// ********************************************
// ClassName  ：  {filename}
// Author        ：  
// Company     ： 智测心控
// Version        ：V1.0
// CreateTime ： {date}
// Description ：  
// ********************************************

using DcpServer.Domain.BaseModels;
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.InteropServices;

namespace DcpServer.Domain
{
    /// <summary>
    /// 数据信息表
    /// </summary>
    [Table("VSIS_MainDataTable", Schema = "dbo")]
    public class MainDataTable : BasePatientModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        //[Description("主键")]
        //public Guid id { get; set; }
        /// <summary>
        /// 监护时间（UTC）
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 监护时长
        /// </summary>
        public Int64 SaveDuration { get; set; }

        /// <summary>
        /// 心率
        /// </summary>
        public byte[] Hr { get; set; }
        /// <summary>
        /// 呼吸
        /// </summary>
        public byte[] Resp { get; set; }
        /// <summary>
        /// 血氧
        /// </summary>
        public byte[] Spo2 { get; set; }
        /// <summary>
        /// 体温
        /// </summary>
        public byte[] Temp { get; set; }
        /// <summary>
        /// 电池电量
        /// </summary>
        public byte[] Power { get; set; }
        /// <summary>
        /// NIBP回顾
        /// </summary>
        public byte[] NIBP { get; set; }

        /// <summary>
        /// 标志位：0实时，1归档，2 删除
        /// </summary>
        public int Flag { get; set; }
    }

    [StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
    public class NIBPModel
    {
        /// <summary>
        /// 序号
        /// </summary>
        public int AutoId { get; set; }
        /// <summary>
        /// 舒张压/低压
        /// </summary>
        [Description("舒张压/低压")]
        public int? Nd { get; set; }
        /// <summary>
        /// 收缩压/高压
        /// </summary>
        [Description("收缩压/高压")]
        public int? Ns { get; set; }
        /// <summary>
        /// 平均压
        /// </summary>
        [Description("平均压")]
        public int? Nm { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Description("创建时间")]
        public DateTime CreateTime { get; set; }
    }

}